//
//  String+Extension.swift
//  xinlang
//
//  Created by 联创—王增辉 on 2019/3/27.
//  Copyright © 2019年 lcWorld. All rights reserved.
//

import Foundation

extension String {

    static var DocumentPath: String{
        return NSSearchPathForDirectoriesInDomains(FileManager.SearchPathDirectory.documentDirectory, FileManager.SearchPathDomainMask.userDomainMask, true).last ?? ""
    }
    static func locationPath(path:String) -> String {
        print(self.DocumentPath + "/" + path)
        return self.DocumentPath + "/" + path
    }
}
